<template>
  <div class="container-box">
    <el-button type="primary" @click="clickFn">打开协议</el-button>
    <previewDialog
      v-if="dialogVisible"
      @close="dialogVisible = false"></previewDialog>
  </div>
</template>

<script>
export default {
  components: {
    previewDialog: () => import('./comp/previewDialog')
  },
  data() {
    return {
      dialogVisible: false
    };
  },
  methods: {
    clickFn() {
      this.dialogVisible = true;
    }
  }
};
</script>

<style lang="scss" scoped>
.container-box {
  width: 100%;
  height: 100%;
}
</style>
